package com.zwj.mapper;

import com.zwj.bo.SelectWorkSubmitInfoBo;
import com.zwj.vo.SelectWorkInfoVo;
import com.zwj.vo.SelectWorkSubmitInfoVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.mapstruct.Mapper;


import java.util.List;
@Mapper
public interface StudentTaskMapper {
   List<SelectWorkSubmitInfoVo> jobManagement(SelectWorkSubmitInfoBo selectWorkSubmitInfoBo, String studentName, String workStatus, String typess, String types);

   @Select("SELECT create_time,title,complete_date,appends_link,teacher_name FROM `work_job_view`  WHERE id=#{id}")
   SelectWorkInfoVo StudentTask(@Param("id")Integer id);

   @Update("  UPDATE work_submit_info set answer_remark =#{answerRemark},is_draft=#{isDraft},work_status=#{workStatus} WHERE id=#{id}")
   boolean StudentAnswers(@Param("id")Integer id,@Param("answerRemark") String answerRemark,@Param("isDraft") String isDraft, @Param("workStatus")String workStatus);
}
